﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sunboxsoft.ASMS.Server.Domain.View
{
    public class VMaintenanceBillMaterial
    {
        public Guid Id { get; set; }

        /// <summary>
        /// 订单号
        /// </summary>
        public Guid MaintenanceBillId { get; set; }

        /// <summary>
        /// 物料Id
        /// </summary>
        public Guid MaterialId { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public int Count { get; set; }

        /// <summary>
        /// 单价
        /// </summary>
        public decimal Price { get; set; }

        /// <summary>
        /// 总金额
        /// </summary>
        public decimal Amount { get; set; }

        /// <summary>
        /// 折扣
        /// </summary>
        public decimal Discount { get; set; }

        /// <summary>
        /// 销售提成
        /// </summary>
        public decimal? SalesCommission { get; set; }

        /// <summary>
        /// 销售提成类型
        /// </summary>
        public int? SalesCommissionType { get; set; }

        /// <summary>
        /// 销售提成金额
        /// </summary>
        public decimal? SalesCommissionAmount { get; set; }

        /// <summary>
        /// 销售经理
        /// </summary>
        public Guid? SalesManagerId { get; set; }

        /// <summary>
        /// 仓库Id
        /// </summary>
        public Guid? WarehouseId { get; set; }

        /// <summary>
        /// 实际出库的仓库Id
        /// </summary>
        public Guid? ActualWarehouseId { get; set; }

        /// <summary>
        /// 实际的仓库名称
        /// </summary>
        public string ActualWarehouseName { get; set; }

        /// <summary>
        /// 实际的完成时间
        /// </summary>
        public DateTime? ActualFinishedTime { get; set; }

        /// <summary>
        /// 实际领料人Id
        /// </summary>
        public Guid? ActualHandlerId { get; set; }

        /// <summary>
        /// 实际领料人名称
        /// </summary>
        public string ActualHandlerName { get; set; }

        /// <summary>
        /// 实际状态
        /// </summary>
        public int? ActualStatus { get; set; }

        public int Status { get; set; }

        /// <summary>
        /// 销售经理
        /// </summary>
        public string SalesManagerName { get; set; }

        /// <summary>
        /// 领料单Id
        /// </summary>
        public Guid? MaterialRequisitionBillId { get; set; }
    }
}
